MyCompressFunction
The sequence grabber component calls your compress function in order to start compressing the captured video image.Your compress function must support the following interface:
pascal ComponentResult MyCompressFunction (SGChannel c, short bufferNum, long refCon);
c
- Specifies the reference that identifies the channel for this operation.
bufferNum
- Identifies the buffer for this operation. You can obtain information about this buffer by calling the
SGGetBufferInfo
function, which is described on page 5-98.refCon
- Contains a reference constant value. You can set this value by calling the
SGSetChannelRefCon
function, which is described on page 5-64.RESULT CODES
Image Compression Manager errors
cantDoThatInCurrentMode -9402 Request invalid in current mode SEE ALSO
Your compress function can use the sequence grabber component'sSGCompressFrame
function to support the default behavior.SGCompressFrame
is described on page 5-102. This function uses the Image Compression Manager to compress the video image. For more on the Image Compression Manager, see Inside Macintosh: QuickTime.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help